import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPoolDemo5 {
    public static void main(String[] args) {
        ExecutorService service= Executors.newWorkStealingPool();
        for (int i = 0; i < 100; i++) {
           service.submit(()->{
               System.out.println("线程名："+Thread.currentThread().getName());
           });
        }
        while(!service.isTerminated()){
            
        }
    }
}
